QPushButton/fusion style: don't ignore QIcon::On icon
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Wed, 31 Dec 2025 10:28:57 +0000 (13:28 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Wed, 31 Dec 2025 10:28:57 +0000 (13:28 +0300)
commit81387d3be07ccfd7a25c6c4df1a457c0f1f08dd3
treec93dd25b30e7d847f40cadfe4178df462aea965a
parentd3b3d0c00114b8f4e05913d3f8bdc1f981338bb3
QPushButton/fusion style: don't ignore QIcon::On icon

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=e9ccdf4d84157173
Last-Update: 2021-08-10

The fusion style did ignore the QIcon::On icon because it reset
State_On to avoid the visual shift of a pressed button.
But it's not needed to reset this flag - the shift does not happen
because the fusion style does return 0 as offset for
PM_ButtonShiftHorizontal/PM_ButtonShiftVertical so no shifting will
happen.

Gbp-Pq: Name fusion_checkable_qpushbutton.diff
src/widgets/styles/qfusionstyle.cpp